package week2;

/**
 * Created by mc on 2017/3/4.
 */
public class test2
{
    public static void main(String[] arge)
    {
        int a;
        int b;
        int c;
        int d;
        for(a=100;a<1000;a=a+1)
        {
            b=a/100;
            c=(a%100)/10;
            d=a%10;
            if(a==b*b*b+c*c*c+d*d*d)
                System.out.println("阿姆斯特朗数有"+a);
        }
    }
}